home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000419_robertls@nortelnetworks.com_Wed Oct 20 14:52:20 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
5KB
Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!chi1.usenetserver.com!news.usenetserver.com!snoopy.risq.qc.ca!nrc-news.nrc.ca!utnut!qcarhaaa.nortelnetworks.com!bcarh189.ca.nortel.com!zcars0v6!not-for-mail
From: "Robert Simmons" <robertls@nortelnetworks.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit Script Output Out of Order
Date: Tue, 19 Oct 2004 21:54:51 -0500
Organization: Nortel
Lines: 147
Message-ID: <cl4k1s$97u$1@zcars0v6.ca.nortel.com>
References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu> <cl3tc5$5n0$1@zcars0v6.ca.nortel.com> <_mfdd.83561$Ot3.22349@twister.nyc.rr.com>
NNTP-Posting-Host: robertls-1.us.nortel.com
X-Trace: zcars0v6.ca.nortel.com 1098240893 9470 47.102.125.229 (20 Oct 2004 02:54:53 GMT)
X-Complaints-To: hawkinsj@nortelnetworks.com
NNTP-Posting-Date: Wed, 20 Oct 2004 02:54:53 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15202
I am not piping the output of two processes to one file. I tried the piping
of the output of only the kermit script to help debug the weird behaviour I
was seeing in the output during the fork of the script from the C++ process.
As you can see below the line "Hello and welcome to csd_send_script.ksc!"
should be output well before "NO CARRIER" since it takes about 15 seconds
for NO CARRIER to be determined.
Here is by script and output file with the command used to redirect.
[root:CDragon-99 robertls]# cat csd_send_script.ksc
#!/usr/bin/kermit +
echo Hello and welcome to csd_send_script.ksc!\10
echo Speed: \%1\10
echo Init String: \%2\10
echo Called Number: \%3\10
echo Port: \%4\10
echo Number of Transfer: \%5\10
echo Transfer File Path: \%6\10
trace /on all
set port \%4
if fail exit 1 Cannot open \%4
echo Using port \%4\13
#set modem type hayes-high-speed
#set hints off
set modem type hayes-2400
set speed \%1
echo Speed set to \%1\10
set carrier-watch off
set flow-control rts/cts
set transfer slow-start off
set receive packet-length 1500
set transfer display crt
set modem name QualComm_CSD
set modem hangup-method rs232-signal
set modem command hardware-flow AT+ IFC=2,2\{13}
set modem speed-matching off
set transfer interruption off
set input echo on
set modem command init-string \%2\13
if fail exit 1 Cannot communicate with modem
echo Dialing \%3\10
set dial display on
dial \%3\13
#output atdt 9045554444\13
#wait 5 cd
if fail exit 1 Cannot make data call
set count \%5
:loop
echo Sending File. Transfer Count: \v(count)\10
send \%6
if success echo Send File #\v(count) complete\10
if fail echo Failed Sending File #\v(count)
if count goto loop
bye
hangup
echo CSD Send Session Complete.\10
exit 0 CSD Send Session Complete.
[root:CDragon-99 robertls]# ./csd_send_script.ksc 115200 AT+CMUX=2
9049440006 /dev/ttyR5 1 robert > robtemp.err 2>&1
[root:CDragon-99 robertls]# cat robtemp.err
ATQ0
OK
AT+ IFC=2,2
OK
AT+CMUX=2
OK
ATM1L2
OK
ATS7=70
OK
ATD9049440006
NO CARRIER
Hello and welcome to csd_send_script.ksc!
Speed: 115200
Init String: AT+CMUX=2
Called Number: 9049440006
Port: /dev/ttyR5
Number of Transfer: 1
Transfer File Path: robert
TRACE ON
Using port /dev/ttyR5
Speed set to 115200
Dialing 9049440006
Hangup OK
Initializing: 21:30:30...
ATQ0
Dialing: 21:30:31...
DIAL Failure: 21:30:47: "NO CARRIER"
*************************
DIAL-class command failed.
Modem type: hayes-2400
Device: /dev/ttyR5
Speed: 115200
Dial status: 23 [No carrier]
. Are you sure you have chosen the appropriate modem type?
. Maybe the interface speed (115200) is too fast:
SET SPEED to a lower speed and try again.
SET SPEED ? to see the list of valid speeds.
. SET MODEM HANGUP-METHOD MODEM-COMMAND and try again.
. If that doesn't work, try again with SET DIAL HANGUP OFF.
. SHOW COMMUNICATIONS, SHOW MODEM, SHOW DIAL to see current settings.
. HELP SET MODEM, HELP SET DIAL, and HELP DIAL for more information.
(Use SET HINTS OFF to suppress future hints.)
*************************
Cannot make data call
[1] -F: "/home/robertls/csd_send_script.ksc"
[root:CDragon-99 robertls]#
"Jeffrey Altman" <jaltman2@nyc.rr.com> wrote in message
news:_mfdd.83561$Ot3.22349@twister.nyc.rr.com...
> Robert Simmons wrote:
>
> > Okay... I'll look into the buffered vs. unbuffered mode. But what about
the
> > output when it is redirected to a file. The output from kermit is out
of
> > order there as well.
> >
> > Robert
>
> Don't try piping the output of two processes into the same file
> and you won't have issues with output being out of order.
>
> --
> -----------------
> This e-mail account is not read on a regular basis.
> Please send private responses to jaltman at mit dot edu